﻿@{
    Layout = null;
}
@model List<Chinaer.DTO.UI.MenuDTO>
@{
    if (Model != null)
    {
    <ul id="ulMenu">
        @foreach (var item in Model as List<Chinaer.DTO.UI.MenuDTO>)
        {
            if (item.ParentID == null)
            { 
            <li><span><a>@item.MenuName</a></span>
                <ul>
                    @foreach (var chind in Model as List<Chinaer.DTO.UI.MenuDTO>)
                    {
                        if (chind.ParentID == item.ID)
                        { 
                        <li><span><a href="@chind.Url" onclick='addTab('@chind.MenuName','@chind.Url','icon-add')'>@chind.MenuName</a></span></li>
                        }
                    }
                </ul>
            </li>            
            }
        }
    </ul>
    }
}
